package com.heima.admin.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.admin.mapper.AdminWeMediaCheckMapper;
import com.heima.admin.service.AdminWeMediaCheckService;
import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminWeMediaCheckServiceImpl extends ServiceImpl<AdminWeMediaCheckMapper, WmNews> implements AdminWeMediaCheckService {


    @Autowired
    private IWemediaClient wemediaClient;


    @Override
    public ResponseResult selectWmNews(NewsAuthDto dto) {
        return wemediaClient.selectWmNews(dto);
    }

    @Override
    public ResponseResult selectWmNewsById(Integer newsId) {
        return wemediaClient.selectWmNewsById(newsId);
    }
}
